package com.huilai.platform.country_platform.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 作者：洪霓
 * 日期：2023/2/18
 * 注释：
 */
@Entity
@Table(name = "information_recruitment")
@EntityListeners(AuditingEntityListener.class)
public class InformationRecruitment {
    /**
     * 招工id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "recruitment_id")
    private Integer id;


    @Column(name = "company")
    private String company;

    @Column(name = "image")
    private String image;
    /**
     * 招聘单位地址
     */
    @Column(name = "address")
    private String address;
    /**
     * 联系电话
     */
    @Column(name = "telephone")
    private String telephone;
    /**
     * 联系人
     */
    @Column(name = "name")
    private String name;
    /**
     * 招聘状态（0,表示招聘中，1表示已招聘)
     */
    @Column(name = "status")
    private Integer status;
    /**
     * 审核状态（0表示未审核，1表示审核通过，2表示审核不通过）
     */
    @Column(name = "audit_status")
    private Integer auditStatus;

    /**
     * 招聘详情
     */
    @Column(name = "describe")
    private String describe;
    /**
     * 创建时间
     */
    @CreatedDate
    @Column(name = "create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @LastModifiedDate
    @Column(name = "update_time")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(Integer auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}
